public class 水仙花 {
    public static void main(String[] args) {
        for (int i = 100; i <1000 ; i++) {
            int single=i%10;
            int ten=i/10%10;
            int hundred=i/100%10;
            if (i==single*single*single+ten*ten*ten+hundred*hundred*hundred){
                System.out.println(i);
            }
        }
    }
}
